<template>
  <div>
    <resume-title title="平台推荐简历" time="45"></resume-title>
    <filtrate-resume v-if="activeIndex == 1" :nowPage="nowPage" @getTotal="getTotal"></filtrate-resume>
    <job-list :nowPage="nowPage" :type="1" v-model="activeIndex" :platform="platform" v-if="activeIndex == 0"  @getTotal="getTotal"></job-list>
    <personal-list v-if="activeIndex == 1"></personal-list>
    <no-resume v-if="false"></no-resume>
    <resume-pagination :total="total" @hasPage="getPage"></resume-pagination>
  </div>
</template>

<script>
import noResume from './no-resume'
import resumeTitle from './resume-title'
import filtrateResume from './filtrate-resume'
import jobList from './job-list'
import personalList from './personal-list'
import resumePagination from './resume-pagination'
import _g from '../../assets/utils/global'
export default {
  data() {
    return {
      platform: false,
      activeIndex: '0' ,
      total: 10,
      nowPage:1
    }
  },
  methods:{
    getPage(val){
      console.log(val)
      this.nowPage = val
    },
    getTotal(val){
      this.total = val
    }
  },
  mounted(){
  },
  components: {
    noResume,
    resumeTitle,
    filtrateResume,
    jobList,
    personalList,
    resumePagination
  }
}
</script>

<style lang="scss" scoped>
</style>
